﻿@model Atacadao.DB.Teste

@{
    ViewBag.Title = "Novo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Novo</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Teste</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.CodigoTeste)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CodigoTeste)
            @Html.ValidationMessageFor(model => model.CodigoTeste)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Ordem)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Ordem)
            @Html.ValidationMessageFor(model => model.Ordem)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CodigoTipoTeste)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CodigoTipoTeste)
            @Html.ValidationMessageFor(model => model.CodigoTipoTeste)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Campo1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Campo1)
            @Html.ValidationMessageFor(model => model.Campo1)
        </div>
    
        <div class="editor-label">
            @Html.LabelFor(model => model.Campo2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Campo2)
            @Html.ValidationMessageFor(model => model.Campo2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Data)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Data)
            @Html.ValidationMessageFor(model => model.Data)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Lista de Teste", "Lista")
</div>
